package com.cake.dao;

import java.util.List;

import com.cake.dao.base.IBaseDao;
import com.cake.entity.XxProductSpecificationValueKey;

public interface XxProductSpecificationValueMapper extends IBaseDao<XxProductSpecificationValueKey> {
	
    int deleteByPrimaryKey(XxProductSpecificationValueKey key);

    int insert(XxProductSpecificationValueKey record);

    int insertSelective(XxProductSpecificationValueKey record);
    /**
     * 通过商品id删除中间表信息
     * @param productId
     * @return
     */
    Integer deleteByProductId(Long productId);
    
    /**
     * 通过商品id查询出商品规格详情的主键
     * @param productId
     * @return
     */
    List<Long> selectXxProductSpecificationValueKeyByProductId(Long productId);
}